package com.lqian.simplestructure.linearlist.util;

/**
 * @author：Melody_LQ
 * @time：2022/7/25 5:57 下午
 */
public class TestFloat {

    public static void main(String[] args) {
//        float i = 1;
//        for (int j = 0; j<20000000; j++) {
//            i ++;
//        }
//        System.out.println(i);//1.6777216E7

//        float a = 20000000;
//        float b = a + 1;
//        float c = b-a;
//        System.out.println(a); //2.0E7
//        System.out.println(b); //2.0E7
//        System.out.println(c); //0.0

        float a = 0.5f;
        float b = 0.125f;
        System.out.println(a + b);
    }

}
